package meihua.stopcarapp.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import meihua.mylibrary.base.BaseActivity;
import meihua.stopcarapp.R;

public class ChargeMoneyActivity extends BaseActivity {


    @Bind(R.id.toolbar_left)
    ImageView toolbarLeft;
    @Bind(R.id.toolbar_center)
    TextView toolbarCenter;
    @Bind(R.id.toolbar_right)
    ImageView toolbarRight;
    @Bind(R.id.toolbar)
    RelativeLayout toolbar;
    @Bind(R.id.tv_my_money)
    TextView mMyMoneyTxt;
    @Bind(R.id.et_charge_money)
    EditText mChargeMoneyEt;
    @Bind(R.id.charge_zhifubao_rb)
    RadioButton mZhifubaoRb;
    @Bind(R.id.charge_wx_rb)
    RadioButton mWxRb;
    @Bind(R.id.btn_charge)
    Button mChargeBtn;

    @Override
    public int getLayoutId() {
        return R.layout.activity_charge_money;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView(Bundle savedInstanceState) {
        toolbarCenter.setText("充值");

    }

    public static void startAction(Activity activity) {
        Intent intent = new Intent(activity, ChargeMoneyActivity.class);
        activity.startActivity(intent);
    }


    @OnClick({R.id.toolbar_left, R.id.btn_charge})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.toolbar_left:
                finish();
                break;
            case R.id.btn_charge:
                ChargeSuccessActivity.startAction(this);
                break;
        }
    }
}
